const express = require("express");
const homerouter = require('./homerouter'); //导入homerouter.js
const adminrouter = require('./adminrouter'); //导入adminrouter.js

//创建应用对象
const expressmodel = express();

expressmodel.use(homerouter,adminrouter);


expressmodel.all('*',(req,res)=>{
    res.end("404 Not found");
})

expressmodel.listen(4000,()=>{
    console.log("服务已经启动，端口4000正在监听中...");
})